""" ___闭包___"""

"""
内部函数funY 是一个闭包
"""
def funX(x):
    def funY(y):
        return x * y
    return funY
i = funX(5)
a = i(8)
print(i)
print(a)

def funN():
    x = 5
    def funY():
        nonlocal x
        x *= x
        return x
    funY()
    return x
print(funN())

